package com.sayimo.maker.mall.orders.service.impl;




import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import com.sayimo.framework.common.AbstractBaseService;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.framework.exception.ServiceException;
import com.sayimo.maker.mall.orders.dao.OrderBrokerageDao;
import com.sayimo.maker.mall.orders.service.OrderBrokerageInterfaceService;
import com.sayimo.maker.mall.orders.vo.OrderBrokerage;






@Service(value = "orderBrokerageInterfaceService")
public class OrderBrokerageInterfaceImplService extends AbstractBaseService implements OrderBrokerageInterfaceService {

	@Resource(name="orderBrokerageDaoImpl")
	private OrderBrokerageDao orderBrokerageDao;
	
	private static Log logger = LogFactory.getLog(OrderBrokerageInterfaceImplService.class);
	
	public Integer insertOrderBrokerage(OrderBrokerage brokerage) throws ServiceException {
		try {
			return this.orderBrokerageDao.insertOrderBrokerage(brokerage);
		} catch (DaoException e) {
			logger.error(e);
			throw new ServiceException(e);
		}
	}
}
